import java.util.Scanner;

public class Test {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int num = scan.nextInt();
        String day = switch (num){
            case 1 -> {
                yield "Monday";
            }
            case 2 ->{
                yield "Tuesday";
            }
            case 3 ->{
                yield "Wednesday";
            }
            case 4 ->{
                yield "Thursday";
            }
            case 5 ->{
                yield "Friday";
            }
            case 6 ->{
                yield "Saturday";
            }
            case 7 ->{
                yield "Sunday";
            }
            default ->{
                yield "no";
            }
        };
        System.out.println(day);
    }
}
